home *** CD-ROM | disk | FTP | other *** search
- Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!news.funet.fi!nntp.hut.fi!nntp.hut.fi!oahvenla
- From: oahvenla@snakemail.hut.fi (Osma Ahvenlampi)
- Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.applications,comp.sys.amiga.hardware,comp.sys.amiga.misc
- Subject: Re: Redirect Parallel port output
- Date: 08 Mar 1994 08:21:32 GMT
- Organization: Helsinki University of Technology, Finland
- Lines: 77
- Distribution: inet
- Message-ID: <OAHVENLA.94Mar8102132@beta.hut.fi>
- References: <CM7JG6.192@crash.cts.com>
- NNTP-Posting-Host: beta.hut.fi
- In-reply-to: uzun@crash.cts.com's message of Sat, 5 Mar 1994 19:57:41 GMT
- Xref: dd.chalmers.se comp.sys.amiga.programmer:7052 comp.sys.amiga.applications:4072 comp.sys.amiga.hardware:9779 comp.sys.amiga.misc:7476
-
- In article <CM7JG6.192@crash.cts.com> uzun@crash.cts.com (Roger Uzun) writes:
-
- >Is there a way to get AmigaDOS 3.X to use a device other than
- >parallel.device for the parallel printer port?
-
- The following is taken from the GVP ioExtender review by J.P.Hillenburg
- (jph@anaconda.bloomington.in.us), originally in comp.sys.amiga.reviews:
-
- -----------------cut here-----------------cut here----------------
-
- NEW INFORMATION [UPDATE:]
-
- Since writing the ioExtender review, I have corrected the problems
- with selecting a proper printer.device. I have found out that Commodore did
- provide a means for doing this, but there is no direct way to do it. I
- accomplished it by hex-editing the file ENV:Sys/printer.prefs.
-
- Also note that the following is totally applicable to other parallel
- devices.
-
- 0) Copy your file ENVARC:Sys/printer.prefs to a safe place, so you can
- restore it if something goes wrong.
-
- 1) Find a decent hex editor, preferably FileX. Make sure that the text
- column is 16 characters wide. (It doesn't have to be, but makes things
- much easier for our purposes.)
-
- 2) Look for the word 'PUNT' in the text column. Place your cursor on the P,
- and then go down exactly two rows. You can then type the name of your
- parallel device, without the .device. (e.g. "gvppar")
-
- [MODERATOR'S NOTE: "Go down two rows" in this case means "move
- forward 32 characters," since each row contains 16 characters in
- Joseph's example. This information may help you if you are using
- a hex editor other than FileX. - Dan]
-
- 3) Once you have tested printing to make sure it works, run SYS:Prefs/Printer
- and SAVE the preferences. This will copy it to ENVARC:, and at the same
- time, verifying your changes.
-
- Here is a hex listing of my printer.prefs file:
-
- 0000: 464F524D 0000009A 50524546 50524844 FORM....PREFPRHD
- 0010: 00000006 00000000 00005054 58540000 ..........PTXT..
- 0020: 00400000 00000000 00000000 00000000 .@..............
- 0030: 00004570 736F6E58 00000000 00000000 ..EpsonX........
- 0040: 00000000 00000000 00000000 00000000 ................
- 0050: 00000000 00020042 00000000 0005004B .......B.......K
- 0060: 00005055 4E540000 00380000 00000000 ..PUNT...8......
- 0070: 00000000 00000000 00000000 00000000 ................
- 0080: 00006776 70706172 00000000 00000000 ..gvppar........
- 0090: 00000000 00000000 00000000 00000000 ................
- 00A0: 0000 ..
-
- Here is my modified printer.prefs file uuencoded, for those too lazy
- to do the above themselves:
-
- begin 777 env:sys/printer.prefs
- M1D]230 )I04D5&4%)(1 8 !05%A4 0 X
- M !%<'-O;E@ ( 0@ X
- M !0!+ !054Y4 . &=V<'!AX
- ;<@ X
- X
- end
-
-
- --
- Joseph Hillenburg (xterm), NPS Technologies, Bloomington, Indiana
- UUCP: jph@anaconda.bloomington.in.us \ / Long live the Hornet
- My BBS: The Wrong Number BBS, w/BMS +----o0o----+
- +1 812 332 7379 (V.32bis)
-
- -----------------cut here-----------------cut here----------------
-
- --
- Osma Ahvenlampi - oahvenla@snakemail.hut.fi - finger or mail for PGP key
- WWW homepage: http://www.tky.hut.fi/.publish/oahvenla
-